var WxParse = require('../../wxParse/wxParse.js');
//获取应用实例
const app = getApp()
Page({
	data: {
		imgpath:app.setting.apiimgpath,
		allData:{}
	},
	//事件处理函数	
	onLoad:function(option){
		var that = this;
		//获取文章详情
		app.request('/api/Seller/getArticleInfo', {aid:option.aid}, function(res){
			if(res.code == '0'){
				WxParse.wxParse('content', 'html', res.data.content, that, 5);
				//更新数据
				that.setData({
					allData:res.data
				});
			}
		});
	}
})